<?php

namespace app\api\validation;

class Reservation extends \think\Validate
{
    protected $rule = [
        'name' => 'require',
        'thumbs' => 'require',
        'weight' => 'require',
        'date' => 'require',
        'time_range' => 'require',
        'address_id' => 'require',
    ];

    protected $message = [
        'name.require' => '商品名称不能为空',
        'thumbs.require' => '商品图片不能为空',
        'weight.require' => '商品重量不能为空',
        'date.require' => '请选择上门时间',
        'time_range.require' => '请选择上门时间',
        'address_id.require' => '请选择上门取货地址',
    ];
}